package com.tuo51.manager.domain;

import com.tuo51.foudation.model.Model;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

@Data
@Entity
@Table(name = "sys_operation_log")
public class OperationLog extends Model {

    @Column(columnDefinition = " datetime DEFAULT NOW() COMMENT '创建时间' ")
    private Date created = new Date();

    @Column(columnDefinition = " varchar(32)  COMMENT '操作id'")
    private String staffId ="";

//    @Column(columnDefinition = " varchar(32)  COMMENT '操作名字'")
//    private String staffName ="";

    @Column(columnDefinition = " varchar(255)  COMMENT 'ip地址'")
    private String ip ="";

    @Column(columnDefinition = " varchar(255)  COMMENT '类型'")
    private String type = "";

    @Column(columnDefinition = " varchar(50)  COMMENT '描述'")
    private String description = "";

    @Column(columnDefinition = " varchar(30)  COMMENT '模型'")
    private String model = "";

    @Column(columnDefinition = " varchar(20)  COMMENT '结果code'")
    private String resultCode = "";


    @Column(columnDefinition = " varchar(20)  COMMENT '结果'")
    private String result = "";

}
